%Bold and Italic
\newcommand{\B}[1]{\textbf{#1}}
\newcommand{\I}[1]{\textit{#1}}

%Figures
% 1 - Pic name 
% 2 - Label
% 3 - Caption
\newcommand{\PICALL}[3]{
                \begin{figure}[ht]
		      	\begin{center}
			    	\includegraphics[width=\textwidth]{#1}
		 		\caption{\textit{#3}\label{#2}}
			\end{center}
		\end{figure}
}

% 1 - Pic name
% 2 - Label
% 3 - Caption
\newcommand{\PIC}[3]{
                \begin{figure}[ht]
			\begin{center}
				\includegraphics[width=0.5\textwidth]{#1}
				\caption{\textit{#3}\label{#2}}
			\end{center}
		\end{figure}
}

\newcommand{\NAMESTYLE}[1]{\textsf{\B{#1}}}

%FUNC Environment
\newenvironment{FUNC}[1]
	{
		\definecolor{Gray}{gray}{0.80}
		\vspace{0.5cm}
		%\vspace{\lineheight}
		\begin{tabular}{|l|}
		\hline
				\rowcolor[gray]{0.8} \NAMESTYLE{#1}\\
		\hline
		\begin{minipage}[t]{\textwidth}
			\begin{center}
			\begin{tabular}{rl}
	}
	{	
			\end{tabular}
			\end{center}
		\end{minipage}\\
		\hline
		\end{tabular}
		\\
	}

%Name
\newcommand{\NAME}[1]
	{
		\\
		\begin{minipage}[t]{0.15\textwidth}
			\flushright 
			\NAMESTYLE{NAME:} 
			\end{minipage} 
		
		&
		
		\begin{minipage}[t]{0.75\textwidth}
			#1\\
			\addcontentsline{toc}{subsection}{#1}
		\end{minipage}\\
	}
	
%Synopsis
\newcommand{\SYNOPSIS}[1]
	{
		\begin{minipage}[t]{0.15\textwidth}
			\flushright
			\NAMESTYLE{SYNOPSIS:} 
			\end{minipage}
		& 
		
		\begin{minipage}[t]{0.75\textwidth}
			\texttt{#1}\\
		\end{minipage}\\
	}

%Description
\newcommand{\DESCRIPTION}[1]
	{
		\begin{minipage}[t]{0.18\textwidth}
			\flushright
			\NAMESTYLE{DESCRIPTION:} 
		\end{minipage}
		
		&
		
		\begin{minipage}[t]{0.75\textwidth}
			{#1}\\
		\end{minipage}\\
	}

%INPUT
\newcommand{\INPUT}[1]
	{
		\begin{minipage}[t]{0.15\textwidth}
			\flushright
			\NAMESTYLE{INPUT:} 
		\end{minipage}
		
		& 
		
		\begin{minipage}[t]{0.75\textwidth}
			\begin{itemize}
			#1
			\end{itemize}\vspace{\lineskip}
		\end{minipage}\\
	}

%INPUTITEM
\newcommand{\INPUTITEM}[2]
	{
		\item \texttt{#1:} #2
	}

%OUTPUT
\newcommand{\OUTPUT}[1]
	{
		\begin{minipage}[t]{0.15\textwidth}
		\flushright
		\NAMESTYLE{OUTPUT:} 
		\end{minipage}
		
		& 
		
		\begin{minipage}[t]{0.75\textwidth}
			#1\\
		\end{minipage}\\
	}

%NOTES
\newcommand{\NOTES}[1]
	{
		\begin{minipage}[t]{0.15\textwidth}
		\flushright
		\NAMESTYLE{NOTES:} 
		\end{minipage}
		
		& 
		
		\begin{minipage}[t]{0.75\textwidth}
			\begin{itemize}
				#1
			\end{itemize}
		\end{minipage}\\
	}

%NOTESITEM
\newcommand{\NOTESITEM}[1]{\item[-] #1\\}

%SEE ALSO
\newcommand{\SEEALSO}[1]
	{
		\begin{minipage}[t]{0.15\textwidth}
		\flushright
		\NAMESTYLE{SEE ALSO:} 
		\end{minipage}
		
		& 
		
		\begin{minipage}[t]{0.75\textwidth}
			\begin{itemize}
				#1
			\end{itemize}
		\end{minipage}\\}

%SEE ALSO ITEM
\newcommand{\SEEALSOITEM}[1]{\item[-] \texttt{#1}\\}


